import Vue from 'vue'
import Router from 'vue-router'
import home from '@/pages/home.vue'
import Login from "@/pages/login.vue"
import Myself from "@/pages/myself.vue"
import kajuan from "@/pages/kajuan.vue"
import goodsupload from "@/pages/goodsupload.vue"
import smallsort from "@/pages/smallsort.vue"
import goodslist from "@/pages/goodslist.vue"
import goodsdetails from "@/pages/goodsdetails.vue"
import sort from "@/pages/sort.vue"
import car from "@/pages/car.vue"
import pay from "@/pages/pay.vue"
Vue.use(Router)

export default new Router({
  routes: [
    {
      path: '/',
      component: home
    },
    {
      path:"/login",
      component:Login
    },
    {
      path:"/myself",
      component:Myself
    },
    {
      path:"/juan",
      component:kajuan
    },
    {
      path:"/goodsupload",
      component:goodsupload
    },
    {
      path:"/sort",
      component:sort
    },
    {
      path:"/goods/smallsort/:abc",
      component:smallsort
    },
    {
      path:"/goods/smallsort/goodslist/:msg",
      component:goodslist
    },
    {
      path:"/goods/goodsdetails/:msg",
      component:goodsdetails
    },{
      path:"/goods/car",
      component:car
    },{
      path:"/goods/pay/:v",
      component:pay
    }
  ]
})
